package com.poet.quick.ssh.service.impl;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.poet.quick.ssh.dao.UserDao;
import com.poet.quick.ssh.entity.User;
import com.poet.quick.ssh.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {

	@Resource
	UserDao userDao;

	@Override
	public List<User> findAll() {
		return userDao.findAll();
	}

	@Override
	public List<User> find(String hql, Object... args) {
		return userDao.find(hql,args);
	}

	@Override
	public User get(Serializable id) {
		return userDao.get(id);
	}

	@Override
	public boolean delete(User user) {
		return userDao.delete(user);
	}

	@Override
	public boolean update(User user) {
		return userDao.update(user);
	}

	@Override
	public void save(User user) {
		userDao.save(user);
	}
	
}
